package com.ushine.design.design.c_behavioral_pattern.b_command.d_undo;

public class Client {
    public static void main(String[] args) {
        CalcutionForm calcutionForm = new CalcutionForm();
        AbstractCommand command;
        command = new AddCommand();
        calcutionForm.setCommand(command);

        calcutionForm.compute(10);
        calcutionForm.compute(20);
        calcutionForm.compute(30);
        calcutionForm.undo();


    }
}
